package com.um2.compression.grol;

import java.awt.FlowLayout;

import javax.swing.JPanel;
import javax.swing.JProgressBar;

public class PanneauChargement extends JPanel {

	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JProgressBar pb;

	public PanneauChargement() {
		setLayout(new FlowLayout()) ;
		this.pb = new JProgressBar(JProgressBar.HORIZONTAL,0,100) ;
		pb.getModel().setValue(0) ;
		add(pb) ;
		
	}
	
	public void setValeur(int i) {
		this.pb.getModel().setValue(i) ;
	}
}
